﻿using Entity.Finance.DTO.IncomeAccountItem;
using Entity.Finance.DTO.PayAccountItem;
using System.ComponentModel.DataAnnotations;

namespace Entity.Finance.DTO.PayAccount
{
    /// <summary>
    /// 对账单模型 - 新增
    /// </summary>
    public class PayAccountAddDTO
    {
        /// <summary>
        /// 对账单编码
        /// </summary>
        [Required(ErrorMessage = "对账单编码不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 供应商 ID
        /// </summary>
        [Required(ErrorMessage = "供应商 ID 不能为空")]
        public string SupplierId { get; set; }

        /// <summary>
        /// 应付对账子单
        /// </summary>
        [Required(ErrorMessage = "应付对账子单Items不能为空")]
        public List<PayAccountItemAddDTO> Items { get; set; }
    }
}
